three-phase commit(三阶段提交,简称 3PC):一种用于分布式事务的原子提交协议,通过“准备(prepare)—预提交(pre-commit)—提交(commit)”三个阶段,尽量降低两阶段提交(2PC)在故障情况下可能出现的阻塞问题,从而提高系统在部分故障时继续推进决策的能力。(在某些网络分区/时钟不可靠等情况下仍可能出现问题;该术语也常作为理论模型与2PC对比讨论。)
/ˌθriː feɪz kəˈmɪt/
该短语由 three-phase(三阶段的) + commit(提交) 组成。它源于分布式数据库与分布式系统领域对“原子提交(atomic commitment)”问题的研究命名方式:用“阶段数(phase)”来区分协议流程复杂度与容错特性(如 two-phase commit、three-phase commit)。
Our system uses three-phase commit to reduce blocking during failures.
我们的系统使用三阶段提交来降低故障时的阻塞风险。
In a wide-area distributed transaction, three-phase commit adds a pre-commit step so participants can reach a safer decision if the coordinator crashes.
在广域网的分布式事务中,三阶段提交增加了预提交步骤,使得当协调者崩溃时,各参与者更可能做出更安全的决策。